<?php

/**

 * DesignAvenue functions and definitions

 *

 * Sets up the theme and provides some helper functions. Some helper functions

 * are used in the theme as custom template tags. Others are attached to action and

 * filter hooks in WordPress to change core functionality.

 *

 * The first function, twentyeleven_setup(), sets up the theme by registering support

 * for various features in WordPress, such as post thumbnails, navigation menus, and the like.

 *

 * When using a child theme (see http://codex.wordpress.org/Theme_Development and

 * http://codex.wordpress.org/Child_Themes), you can override certain functions

 * (those wrapped in a function_exists() call) by defining them first in your child theme's

 * functions.php file. The child theme's functions.php file is included before the parent

 * theme's file, so the child theme functions would be used.

 *

 * Functions that are not pluggable (not wrapped in function_exists()) are instead attached

 * to a filter or action hook. The hook can be removed by using remove_action() or

 * remove_filter() and you can attach your own function to the hook.

 *

 * We can remove the parent theme's hook only after it is attached, which means we need to

 * wait until setting up the child theme:

 *

 * <code>

 * add_action( 'after_setup_theme', 'my_child_theme_setup' );

 * function my_child_theme_setup() {

 *     // We are providing our own filter for excerpt_length (or using the unfiltered value)

 *     remove_filter( 'excerpt_length', 'twentyeleven_excerpt_length' );

 *     ...

 * }

 * </code>

 *

 * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API.

 *

 * @package WordPress

 * @subpackage Twenty_Eleven

 * @since Twenty Eleven 1.0

 */



/**

 * Set the content width based on the theme's design and stylesheet.

 */

 

add_theme_support( 'post-thumbnails' );

@ini_set( 'upload_max_size' , '64M' );

@ini_set( 'post_max_size', '64M');

@ini_set( 'max_execution_time', '300' );
//
///** Register Scripts. */
//add_action( 'wp_enqueue_scripts', 'theme_register_scripts', 1 );
//function theme_register_scripts() {
// 
//  /** Register JavaScript Functions File */
//  wp_register_script( 'functions-js', esc_url( trailingslashit( get_template_directory_uri() ) . 'functions.js' ), array( 'jquery' ), '1.0', true );
// 
//  /** Localize Scripts */
//  $php_array = array( 'admin_ajax' => admin_url( 'getpostcontent.php' ) );
//  wp_localize_script( 'functions-js', 'php_array', $php_array );
// 
//}
// 
///** Enqueue Scripts. */
//add_action( 'wp_enqueue_scripts', 'theme_enqueue_scripts' );
//function theme_enqueue_scripts() {
// 
//  /** Enqueue JavaScript Functions File */
//  wp_enqueue_script( 'functions-js' );
// 
//}

function ajax_post(){ 
		if( isset($_GET['action'])&& $_GET['action'] == 'ajax_post'){ 
			$post_id=$_GET['id']; 
			$post=get_post( $post_id ); 
			echo $post->post_content;
			die(); 
		}else{ 
		return; 
		} 
}

add_action('init', 'ajax_post');

function register_my_menu() {
  register_nav_menu('header-menu',__( 'Header Menu' ));
}

add_action( 'init', 'register_my_menu' );



remove_action( 'jigoshop_before_main_content', 'jigoshop_output_content_wrapper', 10);
remove_action( 'jigoshop_after_main_content', 'jigoshop_output_content_wrapper_end', 10);



add_action('jigoshop_before_main_content', create_function('', 'echo "";'), 10);
add_action('jigoshop_after_main_content', create_function('', 'echo "";'), 10);




?>

<div class="header">
    <ul>
          <li class="f">
        <div class="logo"> <a href="index.html"><img  src="<?php echo get_template_directory_uri ();?>/images/Mahally-logo.png" /> </a></div>
      </li>
          <li class="f-r">
        <div class="menu ">
              <div class="search f-r">
            <div class="search-warper"> search
                  <input name="search-txt" class="search-txt" id="search" >
                  </textarea>
                </div>
          </div>
              <div class="clearfix"> </div>
              <ul>
              <?php

				$defaults = array(
					'theme_location'  => '',
					'menu'            => '',
					'container'       => 'ul',
					'container_class' => '',
					'container_id'    => '',
					'menu_class'      => 'f',
					'menu_id'         => '',
					'echo'            => true,
					'fallback_cb'     => 'wp_page_menu',
					'before'          => '',
					'after'           => '',
					'link_before'     => '',
					'link_after'      => '',
					'items_wrap'      => '%3$s',
					'depth'           => 0,
					'walker'          => ''
				);
				
				wp_nav_menu( $defaults );
				
				?>
          </ul>
            </div>
      </li>
        </ul>
  </div>